package util;

public class UnexpectedException extends RuntimeException
{
	public UnexpectedException(Throwable cause)
	{
		super(
				"An unexpected exception has occurred. Please try again or " +
				"notify your system administrator if the problem continues.", 
				cause);
	}

	public static UnexpectedException wrap(Throwable e)
	{
		if (e instanceof UnexpectedException)
		{
			return (UnexpectedException) e;
		}
		return new UnexpectedException(e);
	}
}
